package com.atguigu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 林允
 * @version 1.0
 * @description: TODO
 * @date 2023/5/10 15:18
 */
@Controller
public class HelloController {

    @RequestMapping("/") // 请求映射
    public String protal(){
        // 将逻辑视图返回
        return "index";
    }

    @RequestMapping("/hello")
    public String hello(){
        return "success";
    }

    @RequestMapping("/test")
    public String test(){
        return "aaa/hello";
    }

}
